<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0,viewport-fit=cover"><title>window | 学习笔记</title><meta name="author" content="lzoxun"><meta name="copyright" content="lzoxun"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="快捷功能 截图 ：win + shift + s 或 PrtSc 查看电脑配置 ：运行 dxdiag  实用功能 查找谁占用了文件 资源监视器 -&gt; 打开关联的句柄(下拉按钮) -&gt; 输入框中输入文件名回车 -&gt; 查到的记录右键结束   设置开机自启 SVN（需要在有管理员权限的命令行执行）-   sc create SVNServer binPath&#x3D; &quot;D:&#x2F;xxx">
<meta property="og:type" content="article">
<meta property="og:title" content="window">
<meta property="og:url" content="http://example.com/2023/07/22/window/win-main/index.html">
<meta property="og:site_name" content="学习笔记">
<meta property="og:description" content="快捷功能 截图 ：win + shift + s 或 PrtSc 查看电脑配置 ：运行 dxdiag  实用功能 查找谁占用了文件 资源监视器 -&gt; 打开关联的句柄(下拉按钮) -&gt; 输入框中输入文件名回车 -&gt; 查到的记录右键结束   设置开机自启 SVN（需要在有管理员权限的命令行执行）-   sc create SVNServer binPath&#x3D; &quot;D:&#x2F;xxx">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://i.loli.net/2021/02/24/5O1day2nriDzjSu.png">
<meta property="article:published_time" content="2023-07-22T07:14:09.700Z">
<meta property="article:modified_time" content="2023-07-22T07:14:09.700Z">
<meta property="article:author" content="lzoxun">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://i.loli.net/2021/02/24/5O1day2nriDzjSu.png"><link rel="shortcut icon" href="/img/favicon.png"><link rel="canonical" href="http://example.com/2023/07/22/window/win-main/index.html"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/node-snackbar/dist/snackbar.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox/fancybox.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = {
  root: '/',
  algolia: undefined,
  localSearch: {"path":"/search.xml","preload":true,"top_n_per_article":1,"unescape":true,"languages":{"hits_empty":"找不到您查询的内容：${query}","hits_stats":"共找到 ${hits} 篇文章"}},
  translate: {"defaultEncoding":2,"translateDelay":0,"msgToTraditionalChinese":"繁","msgToSimplifiedChinese":"簡"},
  noticeOutdate: undefined,
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '',
  dateSuffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: {"chs_to_cht":"你已切换为繁体","cht_to_chs":"你已切换为简体","day_to_night":"你已切换为深色模式","night_to_day":"你已切换为浅色模式","bgLight":"#49b1f5","bgDark":"#1f1f1f","position":"bottom-left"},
  source: {
    justifiedGallery: {
      js: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery/dist/fjGallery.min.js',
      css: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery/dist/fjGallery.min.css'
    }
  },
  isPhotoFigcaption: false,
  islazyload: true,
  isAnchor: false,
  percent: {
    toc: true,
    rightside: false,
  },
  autoDarkmode: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: 'window',
  isPost: true,
  isHome: false,
  isHighlightShrink: false,
  isToc: true,
  postUpdate: '2023-07-22 15:14:09'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><script>(win=>{
    win.saveToLocal = {
      set: function setWithExpiry(key, value, ttl) {
        if (ttl === 0) return
        const now = new Date()
        const expiryDay = ttl * 86400000
        const item = {
          value: value,
          expiry: now.getTime() + expiryDay,
        }
        localStorage.setItem(key, JSON.stringify(item))
      },

      get: function getWithExpiry(key) {
        const itemStr = localStorage.getItem(key)

        if (!itemStr) {
          return undefined
        }
        const item = JSON.parse(itemStr)
        const now = new Date()

        if (now.getTime() > item.expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return item.value
      }
    }
  
    win.getScript = url => new Promise((resolve, reject) => {
      const script = document.createElement('script')
      script.src = url
      script.async = true
      script.onerror = reject
      script.onload = script.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        script.onload = script.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(script)
    })
  
    win.getCSS = (url,id = false) => new Promise((resolve, reject) => {
      const link = document.createElement('link')
      link.rel = 'stylesheet'
      link.href = url
      if (id) link.id = id
      link.onerror = reject
      link.onload = link.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        link.onload = link.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(link)
    })
  
      win.activateDarkMode = function () {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = function () {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
          const now = new Date()
          const hour = now.getHours()
          const isNight = hour <= 6 || hour >= 18
          if (t === undefined) isNight ? activateDarkMode() : activateLightMode()
          else if (t === 'light') activateLightMode()
          else activateDarkMode()
        
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
    const detectApple = () => {
      if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
        document.documentElement.classList.add('apple')
      }
    }
    detectApple()
    })(window)</script><meta name="generator" content="Hexo 6.3.0"></head><body><div id="loading-box"><div class="loading-left-bg"></div><div class="loading-right-bg"></div><div class="spinner-box"><div class="configure-border-1"><div class="configure-core"></div></div><div class="configure-border-2"><div class="configure-core"></div></div><div class="loading-word">加载中...</div></div></div><script>(()=>{
  const $loadingBox = document.getElementById('loading-box')
  const $body = document.body
  const preloader = {
    endLoading: () => {
      $body.style.overflow = ''
      $loadingBox.classList.add('loaded')
    },
    initLoading: () => {
      $body.style.overflow = 'hidden'
      $loadingBox.classList.remove('loaded')
    }
  }

  preloader.initLoading()
  window.addEventListener('load',() => { preloader.endLoading() })

  if (false) {
    document.addEventListener('pjax:send', () => { preloader.initLoading() })
    document.addEventListener('pjax:complete', () => { preloader.endLoading() })
  }
})()</script><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src= "" data-lazy-src="https://i.loli.net/2021/02/24/5O1day2nriDzjSu.png" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">108</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">1</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">0</div></a></div><hr class="custom-hr"/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div></div></div></div><div class="post" id="body-wrap"><header class="post-bg" id="page-header"><nav id="nav"><span id="blog-info"><a href="/" title="学习笔记"><span class="site-name">学习笔记</span></a></span><div id="menus"><div id="search-button"><a class="site-page social-icon search" href="javascript:void(0);"><i class="fas fa-search fa-fw"></i><span> 搜索</span></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div></div><div id="toggle-menu"><a class="site-page" href="javascript:void(0);"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="post-info"><h1 class="post-title">window</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2023-07-22T07:14:09.700Z" title="发表于 2023-07-22 15:14:09">2023-07-22</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2023-07-22T07:14:09.700Z" title="更新于 2023-07-22 15:14:09">2023-07-22</time></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-pv-cv" id="" data-flag-title="window"><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">阅读量:</span><span id="busuanzi_value_page_pv"><i class="fa-solid fa-spinner fa-spin"></i></span></span></div></div></div></header><main class="layout" id="content-inner"><div id="post"><article class="post-content" id="article-container"><h2 id="快捷功能"><a href="#快捷功能" class="headerlink" title="快捷功能"></a>快捷功能</h2><ul>
<li>截图 ：<code>win + shift + s</code> 或 PrtSc</li>
<li>查看电脑配置 ：运行 <code>dxdiag</code></li>
</ul>
<h3 id="实用功能"><a href="#实用功能" class="headerlink" title="实用功能"></a>实用功能</h3><ul>
<li>查找谁占用了文件<ul>
<li>资源监视器 -&gt; 打开关联的句柄(下拉按钮) -&gt; 输入框中输入文件名回车 -&gt; 查到的记录右键结束</li>
</ul>
</li>
<li><h2 id="设置开机自启-SVN（需要在有管理员权限的命令行执行）-sc-create-SVNServer-binPath-D-xxxx-svnserve-exe-service-r-D-xxx-顶层仓库-start-auto-depend-Tcpip-SVNServer：服务名称-–service-：window-模式-start：auto-自动-net-start-SVNServer-手动启动-net-stop-SVNServer-手动停止-sc-delete-SVNServer-停止后删除服务-成功案例：sc-create-MySVNServer2-binpath-C-Program-Files-TortoiseSVN-bin-svnserve-exe-service-r-E-lzo-project-svn-root-depend-Tcpip-start-auto"><a href="#设置开机自启-SVN（需要在有管理员权限的命令行执行）-sc-create-SVNServer-binPath-D-xxxx-svnserve-exe-service-r-D-xxx-顶层仓库-start-auto-depend-Tcpip-SVNServer：服务名称-–service-：window-模式-start：auto-自动-net-start-SVNServer-手动启动-net-stop-SVNServer-手动停止-sc-delete-SVNServer-停止后删除服务-成功案例：sc-create-MySVNServer2-binpath-C-Program-Files-TortoiseSVN-bin-svnserve-exe-service-r-E-lzo-project-svn-root-depend-Tcpip-start-auto" class="headerlink" title="设置开机自启 SVN（需要在有管理员权限的命令行执行）-   sc create SVNServer binPath= &quot;D:/xxxx/svnserve.exe --service -r D:/xxx/顶层仓库&quot; start= auto depend= Tcpip    -   SVNServer：服务名称    -   –service ：window 模式    -   start：auto 自动-   net start SVNServer:手动启动-   net stop SVNServer:手动停止-   sc delete SVNServer:停止后删除服务-   成功案例：sc create MySVNServer2 binpath= &quot;\&quot;C:\Program Files\TortoiseSVN\bin\svnserve.exe\&quot; --service -r E:/lzo-project/svn-root&quot; depend= Tcpip start= auto"></a>设置开机自启 SVN（需要在有管理员权限的命令行执行）<br>-   <code>sc create SVNServer binPath= &quot;D:/xxxx/svnserve.exe --service -r D:/xxx/顶层仓库&quot; start= auto depend= Tcpip</code><br>    -   SVNServer：服务名称<br>    -   –service ：window 模式<br>    -   start：auto 自动<br>-   <code>net start SVNServer</code>:手动启动<br>-   <code>net stop SVNServer</code>:手动停止<br>-   <code>sc delete SVNServer</code>:停止后删除服务<br>-   成功案例：<code>sc create MySVNServer2 binpath= &quot;\&quot;C:\Program Files\TortoiseSVN\bin\svnserve.exe\&quot; --service -r E:/lzo-project/svn-root&quot; depend= Tcpip start= auto</code></h2></li>
</ul>
<h2 id="服务"><a href="#服务" class="headerlink" title="服务"></a>服务</h2><h3 id="包管理工具"><a href="#包管理工具" class="headerlink" title="包管理工具"></a>包管理工具</h3><ul>
<li><p>win10 微软的终端包管理工具</p>
<ul>
<li>Winget 目前使用 Manifest 来管理和安装软件（可以理解为：软件源），通过读取对应的 Manifest 清单来寻找软件</li>
<li><a target="_blank" rel="noopener" href="https://github.com/microsoft/winget-cli/releases">winget</a>:直接双击安装(Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle)</li>
<li>微软商店:搜索<code>应用安装程序</code><ul>
<li><code>winget</code>:查看帮助<ul>
<li>search 查找并显示程序包的基本信息<ul>
<li><code>模糊查找</code>出需要安装的<code>包名</code></li>
<li><code>winget search</code>:查看所有可安装的包</li>
</ul>
</li>
<li>install 安装给定的程序包</li>
<li>show 显示包的相关信息</li>
<li>source 管理程序包的来源</li>
<li>list 显示已安装的程序包</li>
<li>upgrade 升级给定的程序包<ul>
<li><code>winget upgrade --all</code>:升级所有软件包</li>
</ul>
</li>
<li>uninstall 卸载给定的程序包</li>
<li>hash 哈希安装程序的帮助程序</li>
<li>validate 验证清单文件</li>
<li>settings 打开设置</li>
<li>features 显示实验性功能的状态</li>
<li>export 导出已安装程序包的列表</li>
<li>import 安装文件中的所有程序包</li>
</ul>
</li>
<li><code>wingetcreate</code>:将软件包提交到社区仓库，可以同感 winget 安装</li>
</ul>
</li>
<li><code>scoop</code> 或者 <code>chocolately</code>:不是官方出的但是更加成熟<!-- -   PowerShell 使用 scoop

-   `199.232.4.133 raw.githubusercontent.com`:配置 hosts
-   `iex (new-object net.webclient).downloadstring('https://raw.githubusercontent.com/lukesampson/scoop/master/bin/install.ps1')`:官网安装
-   `scoop uninstall scoop`:卸载 scoop 以及安装的所有软件 --></li>
</ul>
</li>
<li><p>Scoop <a target="_blank" rel="noopener" href="https://scoop.sh/">官网</a> <a target="_blank" rel="noopener" href="https://typoraio.cn/#">中文网</a></p>
</li>
</ul>
<p>G   -   要求：<code>Win7+ / PowerShell5+</code>,管理员身份运行 PowerShell<br>    -   $PSVersionTable.PSVersion | git-host<br>    -   参数列表</p>
<pre><code><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">1</span></span><br><span class="line">Set-ExecutionPolicy RemoteSigned -scope CurrentUser</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">2 设置默认安装路径</span></span><br><span class="line"><span class="meta prompt_">$</span><span class="language-bash"><span class="built_in">env</span>:SCOOP=<span class="string">&#x27;D:\Scoop&#x27;</span></span></span><br><span class="line">[Environment]::SetEnvironmentVariable(&#x27;SCOOP&#x27;, $env:SCOOP, &#x27;User&#x27;)</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">3</span></span><br><span class="line">iwr -useb get.scoop.sh | iex</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">未能创建 SSL/TLS 安全通道解决方案</span></span><br><span class="line">[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">连接关闭发送错误</span></span><br><span class="line">iex (new-object net.webclient).downloadstring(&quot;https://raw.githubusercontent.com/lukesampson/scoop/master/bin/install.ps1&quot;)</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">执行scoop 不报错安装完成</span> </span><br><span class="line">&quot;</span><br><span class="line">alias    别名管理别名</span><br><span class="line">bucket    仓库管理</span><br><span class="line">cache    缓存显示或清除下载缓存</span><br><span class="line">checkup    检查潜在问题</span><br><span class="line">cleanup    通过删除旧版本清理应用程序</span><br><span class="line">config    配置获取或设置配置值</span><br><span class="line">create    创建自定义应用程序清单</span><br><span class="line">depends    应用程序的依赖项列表</span><br><span class="line">export    导出（可导入）已安装应用程序的列表</span><br><span class="line">help    帮助显示命令的帮助</span><br><span class="line">hold    按住应用程序以禁用更新</span><br><span class="line">home    主页打开应用程序主页</span><br><span class="line">info    信息显示有关应用程序的信息</span><br><span class="line">install    安装应用程序</span><br><span class="line">list    列出已安装的应用程序</span><br><span class="line">prefix    prefix返回指定应用程序的路径</span><br><span class="line">reset    重置应用程序以解决冲突</span><br><span class="line">search    搜索可用的应用程序</span><br><span class="line">status    状态显示状态并检查新的应用程序版本</span><br><span class="line">unhold    取消挂起取消挂起应用程序以启用更新</span><br><span class="line">uninstall    卸载应用程序</span><br><span class="line">update    更新应用程序，或独家报道自己</span><br><span class="line">virustotal    virustotal在virustotal.com上查找应用程序的哈希</span><br><span class="line">which    定位一个填充程序/可执行程序（类似于Linux上的“which”）</span><br><span class="line">&quot;</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">安装 aria2 进行多线程下载提高速度</span></span><br><span class="line">scoop install aria2</span><br><span class="line">scoop config aria2-enabled false #关闭</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">安装一下必要包</span></span><br><span class="line">scoop install 7zip innounp dark</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">导出软件列表拥有备份与换机</span></span><br><span class="line">scoop export &gt; scoop.txt</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">添加其他 bucket 软件库 `scoop bucket add [软件源名字] [源地址]`</span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">查看 bucket 官方提供软件库列表（可添加）</span></span><br><span class="line">scoop bucket known</span><br><span class="line"></span><br><span class="line">extras # 诸多有用的软件都在里面</span><br><span class="line">main # 默认的大仓库</span><br><span class="line">nerd-fonts # 编程字体一览无遗</span><br><span class="line">nonportable # 收录神奇的UWP应用</span><br><span class="line">versions # 收录软件包的历史版本</span><br><span class="line">...</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">添加/删除软件库</span></span><br><span class="line">scoop bucket add extras</span><br><span class="line">scoop bucket add java</span><br><span class="line">scoop bucket rm java</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">社区提供</span></span><br><span class="line">scoop bucket add echo https://github.com/echoiron/echo-scoop</span><br><span class="line">scoop bucket add dorado https://github.com/chawyehsu/dorado</span><br><span class="line">scoop bucket add dodorz https://github.com/dodorz/scoop</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">合并仓库</span></span><br><span class="line">https://github.com/kkzzhizhou/scoop-apps</span><br><span class="line">scoop bucket add apps https://gitee.com/kkzzhizhou/scoop-apps</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">搜索 软件名+Scoop 也许可以找到该软件被什么软件库收录</span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">常用软件</span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">  quicklook:选择文件空格快速于然</span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">  snipaste :截图工具</span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">  motrix: 类似迅雷的开源轻量下载工具</span></span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">更换 Scoop 下载源</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">[参考](https://gitee.com/squallliu/scoop<span class="comment">#install-scoop-to-a-custom-directory-by-changing-scoop)</span></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">[参考](https://gitee.com/squallliu/scoop)</span></span><br><span class="line">scoop config SCOOP_REPO https://gitee.com/squallliu/scoop</span><br><span class="line">scoop update</span><br><span class="line"></span><br></pre></td></tr></table></figure>
</code></pre>
<ul>
<li>powerShell 美化</li>
</ul>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">安装posh-git和oh-my-posh</span></span><br><span class="line">Install-Module posh-git -Scope CurrentUser</span><br><span class="line">Install-Module oh-my-posh -Scope CurrentUser</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">卸载</span></span><br><span class="line">Uninstall-Module posh-git</span><br><span class="line">Uninstall-Module oh-my-posh</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">检测并初始化 Profile 文件</span></span><br><span class="line">if (!(Test-Path -Path $PROFILE )) &#123; New-Item -Type File -Path $PROFILE -Force &#125;</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">打开配置文件</span></span><br><span class="line">notepad $PROFILE</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">设置配置信息</span></span><br><span class="line">Import-Module posh-git</span><br><span class="line">Import-Module oh-my-posh</span><br><span class="line">Set-PoshPrompt Paradox #主 题</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">可选主题</span></span><br><span class="line">Paradox、robbyrussell、Agnoster、Avit、Fish、Darkblood、Honukai +、PowerLine、Sorin +、tehrob 等</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">字体无法显示(https://www.nerdfonts.com/font-downloads)</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">下载喜欢的Nerd字体 如：DroidSansMono Nerd Font ，然后右键选择`为所有用户安装`后更改PowerShell窗口的字体即可</span></span><br><span class="line"></span><br><span class="line">linux其他终端 `DroidSansMono Nerd Font Blod`效果步长</span><br><span class="line">···</span><br><span class="line">-   win 命令终端 windows PowerShell</span><br><span class="line">    -   微软商店下载`windows Terminal`</span><br><span class="line">    -   [官方文档](https://github.com/microsoft/terminal)</span><br><span class="line">    -   `$PSVersionTable`:PowerShell 终端下查看版本</span><br><span class="line">    -   windows PowerShell 的配置</span><br><span class="line">        -   `code $Profile`:打开配置文件</span><br><span class="line">    -   `windows Terminal`配置文件</span><br><span class="line"></span><br><span class="line">```shell</span><br><span class="line">&#123;</span><br><span class="line">    &quot;$schema&quot;: &quot;https://aka.ms/terminal-profiles-schema&quot;,</span><br><span class="line">    &quot;actions&quot;:</span><br><span class="line">    [</span><br><span class="line">      xxxx</span><br><span class="line">    ],</span><br><span class="line">    &quot;copyFormatting&quot;: &quot;none&quot;,</span><br><span class="line">    &quot;copyOnSelect&quot;: false,</span><br><span class="line">    &quot;defaultProfile&quot;: &quot;&#123;61c54bbd-c2c6-5271-96e7-009a87ff44bf&#125;&quot;, //默认打开的终端，通过guid</span><br><span class="line">    &quot;profiles&quot;:</span><br><span class="line">    &#123;</span><br><span class="line">        &quot;defaults&quot;: &#123;</span><br><span class="line">            &quot;colorScheme&quot;:&quot;Campbell&quot;,//默认配送方案</span><br><span class="line">            &quot;useAcrylic&quot;:true,//材质</span><br><span class="line">            &quot;startingDirectory&quot;: &quot;D:/&quot;,//设置默认打开路径</span><br><span class="line">            &quot;acrylicOpacity&quot;:0.75//透明度</span><br><span class="line">        &#125;,</span><br><span class="line">        &quot;list&quot;: //新增tab页面可以选择很多方案Ubuntu、git、cmd等等，也可以配置自己个性化指令记录</span><br><span class="line">        [</span><br><span class="line">            &#123;</span><br><span class="line">                &quot;colorScheme&quot;: &quot;Campbell&quot;,</span><br><span class="line">                &quot;commandline&quot;: &quot;powershell.exe&quot;,</span><br><span class="line">                &quot;guid&quot;: &quot;&#123;61c54bbd-c2c6-5271-96e7-009a87ff44bf&#125;&quot;,</span><br><span class="line">                &quot;hidden&quot;: false,</span><br><span class="line">                &quot;name&quot;: &quot;Windows PowerShell&quot;</span><br><span class="line">                //&quot;backgroundImage&quot;:&quot;xxx&quot; //powershell终端的背景图片</span><br><span class="line">                //&quot;backgroundImageOpacity&quot;:0.1 //powershell终端的背景图片透明度</span><br><span class="line">            &#125;,</span><br><span class="line">            &#123;</span><br><span class="line">                &quot;commandline&quot;: &quot;D:\\install\\Git\\bin\\bash.exe&quot;, //指令,可以是程序，也能是一些本地可以运行的指令,终端指令必须找到对于的bash程序</span><br><span class="line">                &quot;icon&quot;: &quot;D:\\install\\Git\\mingw64\\share\\git\\git-for-windows.ico&quot;,//图标</span><br><span class="line">                &quot;name&quot;: &quot;Git&quot;, //名称</span><br><span class="line">                &quot;hidden&quot;:false,&quot;是否隐藏&quot;</span><br><span class="line">                &quot;colorScheme&quot;:&quot;xxx&quot;,&quot;设置单独的配色方案优先级高,&quot;</span><br><span class="line">                &quot;guid&quot;:&quot;&#123;cd411374-e41f-49dd-8ace-4f2b42b6cffa&#125;&quot;</span><br><span class="line">            &#125;,</span><br><span class="line">            &#123;</span><br><span class="line">                &quot;commandline&quot;:&quot;D:\\install\\cmder\\vendor\\git-for-windows\\bin\\bash.exe&quot;</span><br><span class="line">            &#125;</span><br><span class="line">        ]</span><br><span class="line">    &#125;,</span><br><span class="line">    &quot;schemes&quot;:</span><br><span class="line">    [</span><br><span class="line">        &#123; //每一个配色方案 外观通过name选择这里的</span><br><span class="line">            &quot;background&quot;: &quot;#2D323B&quot;,</span><br><span class="line">            &quot;black&quot;: &quot;#0C0C0C&quot;,</span><br><span class="line">            &quot;blue&quot;: &quot;#0037DA&quot;,</span><br><span class="line">            &quot;brightBlack&quot;: &quot;#767676&quot;,</span><br><span class="line">            &quot;brightBlue&quot;: &quot;#3B78FF&quot;,</span><br><span class="line">            &quot;brightCyan&quot;: &quot;#61D6D6&quot;,</span><br><span class="line">            &quot;brightGreen&quot;: &quot;#16C60C&quot;,</span><br><span class="line">            &quot;brightPurple&quot;: &quot;#B4009E&quot;,</span><br><span class="line">            &quot;brightRed&quot;: &quot;#E74856&quot;,</span><br><span class="line">            &quot;brightWhite&quot;: &quot;#F2F2F2&quot;,</span><br><span class="line">            &quot;brightYellow&quot;: &quot;#F9F1A5&quot;,</span><br><span class="line">            &quot;cursorColor&quot;: &quot;#FFFFFF&quot;,</span><br><span class="line">            &quot;cyan&quot;: &quot;#3A96DD&quot;,</span><br><span class="line">            &quot;foreground&quot;: &quot;#CCCCCC&quot;,</span><br><span class="line">            &quot;green&quot;: &quot;#13A10E&quot;,</span><br><span class="line">            &quot;name&quot;: &quot;Campbell&quot;,</span><br><span class="line">            &quot;purple&quot;: &quot;#881798&quot;,</span><br><span class="line">            &quot;red&quot;: &quot;#C50F1F&quot;,</span><br><span class="line">            &quot;selectionBackground&quot;: &quot;#616161&quot;,</span><br><span class="line">            &quot;white&quot;: &quot;#CCCCCC&quot;,</span><br><span class="line">            &quot;yellow&quot;: &quot;#C19C00&quot;</span><br><span class="line">        &#125;,</span><br><span class="line">    ],</span><br><span class="line">    &quot;theme&quot;: &quot;dark&quot;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="美化"><a href="#美化" class="headerlink" title="美化"></a>美化</h3><ul>
<li>微软商店 安装 TranslucentTB</li>
<li>BitDock</li>
<li>MyDock</li>
</ul>
<h3 id="快捷键"><a href="#快捷键" class="headerlink" title="快捷键"></a>快捷键</h3><ul>
<li><code>Alt + Shift + G</code>:谷歌</li>
<li><code>Alt + Shift + U</code>:uTools</li>
<li><code>Alt + Shift + V</code>:虚拟机</li>
</ul>
<h2 id="window-cmd"><a href="#window-cmd" class="headerlink" title="window cmd"></a>window cmd</h2><h3 id="win-命令"><a href="#win-命令" class="headerlink" title="win 命令"></a>win 命令</h3><ul>
<li><p><a target="_blank" rel="noopener" href="https://docs.microsoft.com/zh-cn/windows-server/administration/windows-commands/windows-commands">官网</a></p>
</li>
<li><p>内置命令</p>
<ul>
<li><p>基本使用</p>
<ul>
<li><code>cd</code></li>
<li><code>D:</code>:进入 D 盘</li>
<li><code>dir</code>:目录列表<ul>
<li><code>/a</code>:所有文件</li>
<li><code>/ad</code>:查看所有文件夹，d 为属性之一</li>
</ul>
</li>
<li><code>mkdir .\a\b\c\d</code></li>
<li><code>rmdir a</code>:删除目录(rm 同样有效)<ul>
<li><code>/s</code>:删除非空录入树</li>
<li><code>/q</code>:不要提示</li>
</ul>
</li>
<li><code>ren oldname newname</code>:重命名(rename 同样有效)</li>
<li><code>copy fromName toName</code>:复制</li>
<li><code>move fromName toName</code>:<code>剪切</code>或<code>重命名</code>目录或文件</li>
<li><code>del path1 path2</code>:删除</li>
<li><code>attrib</code>:查看文件属性（R(只读)、A(普通文件)、S(系统文件，默认不显示)、H(隐藏文件)、。。。）<ul>
<li><code>attrib +h +s * /s /d</code>:隐藏当前文件夹下所有文件（命令可以看到）<ul>
<li>attrib +h +s .&#x2F;video &#x2F;s &#x2F;d</li>
<li>attrib +h -s .&#x2F;video &#x2F;s &#x2F;d</li>
</ul>
</li>
<li><code>attrib +h * /s /d</code>:相当于系统的隐藏文件，可以同感查看隐藏文件显示出来</li>
</ul>
</li>
<li><code>findstr</code>:类似 grep</li>
<li><code>echo xxx&gt;filename</code>:创建文件</li>
</ul>
</li>
<li><p><code>cls</code>:清屏，c+l只是把所以内容滚动到最上面</p>
</li>
<li><p><code>mstsc</code>:远程链接</p>
</li>
<li><p><code>compmgmt</code>:计算机管理 GUI</p>
</li>
<li><p><code>firewall.cpl</code>:打开防火墙</p>
</li>
<li><p><code>lusrmgr.msc</code>:打开用户与组</p>
</li>
<li><p><code>dcomcnfg|services.msc</code>:系统服务</p>
</li>
<li><p><code>devmgmt.msc</code>:设备管理器</p>
</li>
<li><p><code>gpedit.msc</code>:本地策略组编辑</p>
</li>
<li><p><code>dxdiag</code>:查看系统信息</p>
</li>
<li><p><code>diskmgmt.msc</code>:磁盘管理</p>
</li>
<li><p><code>taskmgr</code>:任务管理器</p>
</li>
<li><p><code>notepad</code>: 打开记事本</p>
</li>
<li><p><code>calc</code>:计算器</p>
</li>
<li><p><code>winver</code>:win 版本</p>
</li>
<li><p><code>systeminfo</code>:查看系统信息</p>
</li>
<li><p><code>tasklist</code>:查看正在运行的程序</p>
</li>
<li><p><code>driverquery</code>:查看已安装的驱动程序<br><a target="_blank" rel="noopener" href="https://www.cnblogs.com/hbbpb/archive/2007/09/06/883876.html">xxx</a></p>
</li>
<li><p>常用 cmd 终端指令</p>
<ul>
<li><code>指令 /?</code>:查看帮助</li>
<li><code>指令 /help</code>:查看详细帮助</li>
<li><code>color /? </code>:列出可以设置的颜色<ul>
<li><code>color 0a</code>:设置颜色</li>
</ul>
</li>
<li><code>title &#39;xx&#39;</code>:设置标题</li>
<li><code>date</code>:修改日期<ul>
<li><code>date /T</code>:查看日期</li>
</ul>
</li>
<li><code>time</code>:修改时间<ul>
<li><code>time /T</code>:查看时间</li>
</ul>
</li>
<li><code>start</code>:启动一个单独窗口或运行指定程序</li>
<li><code>tasklist</code>:查看当前计算机或远程正在运行的列表<ul>
<li>远程 <code>tasklist /S 远程IP /U 用户名 /P 密码</code></li>
<li><code>/FI &quot;PID EQ 12345&quot;</code>:筛选 PID 为 12345 的进程</li>
</ul>
</li>
<li><code>taskkill</code>:结束进程<ul>
<li><code>/PID 进程pid</code></li>
<li><code>/IM 进程名称</code>:<code>/FI</code> 筛选时可以用通配符*<ul>
<li><code>/T</code>:同时杀死紫荆城</li>
</ul>
</li>
<li><code>/F</code>:强制关闭</li>
</ul>
</li>
<li><code>tree</code>:树形查看文件<ul>
<li><code>/F</code>:可查看文件</li>
</ul>
</li>
<li><code>shoutdown</code>:关机相关<ul>
<li><code>/i</code>:图形设置，必须第一个</li>
<li><code>/s</code>:<code>关闭</code>计算机<ul>
<li><code>/sg</code>:开机自动登录关闭时的账户</li>
</ul>
</li>
<li><code>/r</code>:<code>重启</code></li>
<li><code>/h</code>:<code>休眠</code></li>
<li><code>/t xxx</code>:设置几秒后关闭</li>
<li><code>/a</code>:<code>终止</code>关闭</li>
<li><code>/f</code>:<code>强制</code>关闭</li>
<li><code>/m \\computer</code>:连接远程</li>
</ul>
</li>
<li>计划任务<ul>
<li><code>at</code>:at 22:00(时间) &#x2F;every:xxx 指令</li>
<li><code>schtasks</code>:<a target="_blank" rel="noopener" href="https://docs.microsoft.com/zh-cn/windows-server/administration/windows-commands/schtasks-create">待研究</a></li>
</ul>
</li>
<li>环境变量<ul>
<li><code>set</code>:查看系统的环境变量列表</li>
<li><code>echo %变量%</code>:查看指定变量</li>
<li><code>set COUNT=COUNTVALUE</code>:设置环境变量</li>
<li><code>set COUNT=</code>:删除环境变量</li>
</ul>
</li>
<li>用户与组<code>lusrmgr.msc 打开GUI</code>(终端以管理员身份打开)<ul>
<li>用户<ul>
<li><code>net user</code>:查看用户列表</li>
<li><code>net user lzoxun</code>:查看用户详细信息</li>
<li><code>net user &lt;user-name&gt; /delete</code>:删除用户</li>
<li><code>net user &lt;user-name&gt; &lt;user-pwd&gt; /add</code>:添加用户</li>
<li><code>net user &lt;user-name&gt; /active:no</code>:禁用用户，yes 取消禁用</li>
</ul>
</li>
<li>组<ul>
<li><code>net localgroup</code>:查看组列表</li>
<li><code>net localgroup &lt;group-name&gt;</code>:查看组信息以及成员</li>
<li><code>net localgroup &lt;group-name&gt; &lt;user-name&gt; /add</code>:向组中添加用户</li>
<li><code>net localgroup &lt;group-name&gt; &lt;user-name&gt; /delete</code>:用户删除这个本地组</li>
</ul>
</li>
<li>其他 net<ul>
<li><code>net start SVNServer</code>:手动启动</li>
<li><code>net stop SVNServer</code>:手动停止</li>
</ul>
</li>
</ul>
</li>
<li>网络<ul>
<li><code>ping ip</code>:查看是否连通（win ping 4 次会自动结束）<ul>
<li><code>ping 127.0.0.1</code>:查看本地网卡是否正常</li>
</ul>
</li>
<li><code>telnet</code>: 需要开启</li>
<li><code>ipconfig</code>:ip<ul>
<li><code>ipconfig /release</code>:释放 IP</li>
<li><code>ipconfig /renew</code>:重新获取 IP</li>
<li><code>ipconfig /flushdns</code>:刷新 DNS(也许可以解决一些网络故障)</li>
</ul>
</li>
<li><code>tracert ip或域名</code>:路由检测，探测本地主机与远程 ip 设备到底经过多少网络设备（IP 地址）才能进行正常的连接<ul>
<li>测试局域网内基本一跳,百度十几跳</li>
</ul>
</li>
<li><code>arp</code>:显示与修改 IP 到物理地址转换表</li>
<li><code>netstat</code><ul>
<li><code>-a</code>:显示所有链接以及监听端口</li>
<li><code>-n</code>:数字 IP 形式人性化显示</li>
<li><code>-o</code>:显示进程 ID</li>
<li>属性<ul>
<li>状态<ul>
<li>LISTENING:处于监听状态(等待连接)</li>
<li>ESTABLISHED:建立连接成功</li>
<li>TIME_WAIT：超时没有连接成功</li>
</ul>
</li>
</ul>
</li>
<li>运用<ul>
<li>已知端口被占用，<code>netstat</code>通过端口找到对于<code>PID</code></li>
<li>通过<code>tasklist |findstr PID</code>:找到进程名</li>
<li><code>taskkill</code> 通过名称杀死进程，单个进程的话跳过上一部直接通过 PID 杀死进程</li>
</ul>
</li>
</ul>
</li>
<li><code>netsh</code>:网络配置<ul>
<li><code>netsh dump &gt; d:/共享文件/lenovo-netshbak.txt</code>:备份网络配置</li>
<li><code>netsh</code>:进入交互环境<ul>
<li><code>int ip</code>:进入 ipv4</li>
<li><code>dump</code>:查看 ipv4 所有信息</li>
<li><code>set address name=&quot;WIFI&quot; source=static addr=192.168.xxx.xxx mask=255,255,255,0</code><ul>
<li>图形界面网络适配器 WIFI 的的 IP 地址和子网掩码就不是自动获得的了,而是上面变成设置了的</li>
</ul>
</li>
<li><code>set address name=&quot;WIFI&quot; source=dscp</code><ul>
<li>自动获取 IP 正常</li>
</ul>
</li>
</ul>
</li>
<li>处理网络故障方案<br><code>netsh winsock reset</code>:winsock 协议配置有问题会导致网络故障，通过充值该目录来恢复网络<br><code>netsh int ip reset c:\resetlog.txt</code>:重置 TCP&#x2F;IP，恢复到安装系统是的状态</li>
<li>netsh 设置防火墙入站规则(<code>firewall.cpl 打开GUI</code>)<ul>
<li><code>netsh firewall</code>:简单模式设置（已弃用）<ul>
<li><code>netsh firewall set portopening TCP 33333 ENABLE</code></li>
<li><code>netsh firewall delete portopening TCP 33333</code></li>
</ul>
</li>
<li><code>netsh advfirewall</code>:高级模式设置<ul>
<li><code>netsh advfirewall firewall add rule name=wallname dir=in action=allow protocol=TCP localport=33333</code>:防火墙添加入站规则（dir&#x3D;out 出站）</li>
<li><code>netsh advfirewall firewall delete rule name=wallname protocol=TCP localport=33333</code>:防火墙删除入站规则</li>
</ul>
</li>
</ul>
</li>
<li>操作防火墙<ul>
<li><code>netsh advfirewall show allprofile state</code>:查看防火墙状态</li>
<li><code>netsh advfirewall set allprofiles state off</code>:关闭所有防火墙</li>
<li><code>netsh advfirewall set allprofiles state on</code>:启用所有防火墙</li>
</ul>
</li>
<li><code>netsh wlan</code>获取已连接过的 WiFi 密码<ul>
<li><code>netsh wlan show profiles</code>:获取链接过的 WiFi</li>
<li><code>netsh wlan show profile name=&quot;manja&quot; key=clear&quot;</code>:获取链接过的 WiFi</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li><p>外部扩展命令</p>
<ul>
<li>自己安装程序配置 node、npm</li>
</ul>
</li>
</ul>
<h3 id="功能"><a href="#功能" class="headerlink" title="功能"></a>功能</h3><ul>
<li>命令行共享<ul>
<li><code>net share</code>:查看本地共享的文件夹(与计算机管理-共享下的列表一样)</li>
<li><code>net share 共享名 /delete</code>:删除共享</li>
<li><code>net share myshare=d:\testdir</code>:创建共享</li>
<li><code>&gt;net view \\192.168.192.1</code>:查看创建的共享</li>
</ul>
</li>
<li><h2 id="无法找搜索到别人共享的处理方法-1、双方控制面板-网络和-Internet-网络和共享中心-高级共享设置-打开公共文件共享-2、关闭对方防火墙-或将对方防火墙网路发现的公用私用打钩允许-3、关闭对方控制面板-程序-程序和功能-启用关闭-widows-功能-勾掉-SMB-1-0-CFLS-文件共享支持"><a href="#无法找搜索到别人共享的处理方法-1、双方控制面板-网络和-Internet-网络和共享中心-高级共享设置-打开公共文件共享-2、关闭对方防火墙-或将对方防火墙网路发现的公用私用打钩允许-3、关闭对方控制面板-程序-程序和功能-启用关闭-widows-功能-勾掉-SMB-1-0-CFLS-文件共享支持" class="headerlink" title="无法找搜索到别人共享的处理方法-   1、双方控制面板\网络和 Internet\网络和共享中心\高级共享设置 打开公共文件共享-   2、关闭对方防火墙(或将对方防火墙网路发现的公用私用打钩允许)-   3、关闭对方控制面板\程序\程序和功能-&gt;启用关闭 widows 功能 勾掉 SMB 1.0/CFLS 文件共享支持"></a>无法找搜索到别人共享的处理方法<br>-   1、双方控制面板\网络和 Internet\网络和共享中心\高级共享设置 打开公共文件共享<br>-   2、关闭对方防火墙(或将对方防火墙网路发现的公用私用打钩允许)<br>-   3、关闭对方控制面板\程序\程序和功能-&gt;启用关闭 widows 功能 勾掉 <code>SMB 1.0/CFLS 文件共享支持</code></h2></li>
</ul>
<h3 id="回收站"><a href="#回收站" class="headerlink" title="回收站"></a>回收站</h3><p>终端打开：explorer.exe ::{645FF040-5081-101B-9F08-00AA002F954E}<br>位置:&#x2F;mnt&#x2F;c&#x2F;$Recycle.Bin</p>
<h3 id="bat-批处理"><a href="#bat-批处理" class="headerlink" title="bat 批处理"></a>bat 批处理</h3><ul>
<li><p>格式: <code>@echo off</code>开头 xxx 代码 <code>pause</code>结束的 <code>bat</code>程序</p>
</li>
<li><p>算术运算符</p>
<ul>
<li><code>set /a num = 3-1</code>:set 指令 &#x2F;a 代表进行算数运算<ul>
<li><code>echo %num%</code>:输出变量，变量需要百分号分格</li>
</ul>
</li>
</ul>
</li>
<li><p>语句</p>
<ul>
<li><code>echo</code> :输出</li>
</ul>
</li>
<li><p>bat</p>
</li>
</ul>
<figure class="highlight bat"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">&quot;<span class="number">1</span>.bat</span><br><span class="line"><span class="keyword">call</span> <span class="number">2</span>.bat &quot;调用其他文件</span><br></pre></td></tr></table></figure>

<h2 id="系统优化"><a href="#系统优化" class="headerlink" title="系统优化"></a>系统优化</h2><ul>
<li><code>powercfg -h off</code>:管理员关闭休眠文件(自动删除 C 盘下的很大 hiberfil.sys )</li>
<li><code>http://veger.ys168.com/ 下载 SpaceSniffer汉化版.zip</code>:查看资源占用大小，或从系统-储存里面查看</li>
<li><code>%Temp%</code>:删除里面的文件</li>
<li><code>C:盘 右键清理磁盘</code>:选择要删除的</li>
</ul>
<h3 id="PowerShell-常用命令"><a href="#PowerShell-常用命令" class="headerlink" title="PowerShell 常用命令"></a>PowerShell 常用命令</h3><ul>
<li><code>Get-Command -Name vim</code>:查看程序所在路径<br>&#x2F;&#x2F;192.168.3.24&#x2F;共享文件 &#x2F;mnt&#x2F;window cifs defaults,username&#x3D;liaozx,password&#x3D;liaozx123</li>
</ul>
<h3 id="window-快捷键"><a href="#window-快捷键" class="headerlink" title="window 快捷键"></a>window 快捷键</h3><h4 id="Win"><a href="#Win" class="headerlink" title="Win"></a>Win</h4><ul>
<li><code>win</code>：显示隐藏菜单</li>
<li><code>win + T</code>：循环浏览任务栏的程序</li>
<li><code>win + R</code>：运行<ul>
<li><code>control</code>：控制面板</li>
<li><code>appwiz.cpl</code>：卸载程序</li>
<li><code>dir path</code>：打开相应文件夹</li>
</ul>
</li>
<li><code>win + D</code>：显示桌面</li>
<li><code>win + E</code>：打开资源管理器</li>
<li><code>win + L</code>：锁定计算机</li>
<li><code>win + M</code>：最小化所有被打开的窗口</li>
<li><code>win + I</code>：设置</li>
<li><code>win + Tab</code>：虚拟桌面</li>
<li><code>win + ↑↓ ← →</code>:打开程序窗口排版<ul>
<li><code>上中下</code>：最大化&#x2F;默认状态&#x2F;最小化隐藏</li>
<li><code>左中有</code>：左半屏&#x2F;默认状态&#x2F;右半屏</li>
</ul>
</li>
<li><code>win + G</code>：屏幕录制</li>
<li><code>win + Alt + PrintScreen</code>：屏幕截图</li>
<li><code>win + Home</code>：清除窗口，保留当前</li>
<li><code>win + ctrl + D</code>：新建桌面(win + tab切换)</li>
<li><code>win + x</code>：系统功能菜单<ul>
<li><code>win + x uu</code>：快速关机</li>
</ul>
</li>
<li><code>win + v</code>：系统剪切板</li>
</ul>
<h4 id="Ctrl"><a href="#Ctrl" class="headerlink" title="Ctrl"></a>Ctrl</h4><ul>
<li><code>Ctrl + ESC</code>：win 菜单</li>
<li><code>Ctrl + Shift + ESC</code>：打开任务管理器 </li>
<li><code>Ctrl + (Shift)? + Tab</code>：切换浏览器tab</li>
</ul>
<h4 id="Alt"><a href="#Alt" class="headerlink" title="Alt"></a>Alt</h4><ul>
<li><code>Alt + F4</code>：关闭当前应用程序<ul>
<li>桌面使用可以关机</li>
</ul>
</li>
<li><code>Alt + Tab</code>：切换打开的应用程序</li>
<li><code>Alt + Enter/双击</code>：查看文件属性</li>
<li><code>Alt + 左/右</code>：文件管理器左右移动</li>
<li><code>Alt + Ctrl + Delete</code>：打开任务管理器</li>
</ul>
<h4 id="Shift"><a href="#Shift" class="headerlink" title="Shift"></a>Shift</h4><ul>
<li><code>Shift + F10</code>：右键菜单</li>
<li><code>Shift + delete</code>：永久删除文件</li>
<li><code>win + A</code>：操作中下(消息通知、wifi、网络等)</li>
<li><code>win + B</code>：任务栏右边工具(输入法网络。。。)</li>
<li><code>win + P</code>：投影仪输出设备</li>
<li><code>win + U</code>：辅助工具管理器</li>
<li><code>win + Q</code>：小娜语音</li>
</ul>
<h3 id="win常用软件"><a href="#win常用软件" class="headerlink" title="win常用软件"></a>win常用软件</h3><ul>
<li><a target="_blank" rel="noopener" href="https://potplayer.daum.net/">potplayer 视频播放器</a></li>
<li>chrome</li>
<li>vscode</li>
<li>xmind</li>
<li>typora</li>
</ul>
</article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta">文章作者: </span><span class="post-copyright-info"><a href="http://example.com">lzoxun</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta">文章链接: </span><span class="post-copyright-info"><a href="http://example.com/2023/07/22/window/win-main/">http://example.com/2023/07/22/window/win-main/</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta">版权声明: </span><span class="post-copyright-info">本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a> 许可协议。转载请注明来自 <a href="http://example.com" target="_blank">学习笔记</a>！</span></div></div><div class="tag_share"><div class="post-meta__tag-list"></div><div class="post_share"><div class="social-share" data-image="https://i.loli.net/2021/02/24/5O1day2nriDzjSu.png" data-sites="facebook,twitter,wechat,weibo,qq"></div><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/butterfly-extsrc/sharejs/dist/css/share.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc/sharejs/dist/js/social-share.min.js" defer></script></div></div><nav class="pagination-post" id="pagination"><div class="prev-post pull-left"><a href="/2023/07/22/window/win-wsl/" title="wsl"><div class="cover" style="background: var(--default-bg-color)"></div><div class="pagination-info"><div class="label">上一篇</div><div class="prev_info">wsl</div></div></a></div><div class="next-post pull-right"><a href="/2023/07/22/web/%E5%85%BC%E5%AE%B9%E9%97%AE%E9%A2%98/" title="兼容问题"><div class="cover" style="background: var(--default-bg-color)"></div><div class="pagination-info"><div class="label">下一篇</div><div class="next_info">兼容问题</div></div></a></div></nav></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src= "" data-lazy-src="https://i.loli.net/2021/02/24/5O1day2nriDzjSu.png" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">lzoxun</div><div class="author-info__description"></div></div><div class="card-info-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">108</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">1</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">0</div></a></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/liaozhongxun"><i class="fab fa-github"></i><span>Follow Me</span></a><div class="card-info-social-icons is-center"><a class="social-icon" href="https://github.com/liaozhongxun" target="_blank" title="Github"><i class="fab fa-github" style="color: #24292e;"></i></a><a class="social-icon" href="mailto:869664233@gmail.com" target="_blank" title="Email"><i class="fas fa-envelope" style="color: #4a7dbe;"></i></a></div></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>公告</span></div><div class="announcement_content">这是我的文档</div></div><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>目录</span><span class="toc-percentage"></span></div><div class="toc-content"><ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%BF%AB%E6%8D%B7%E5%8A%9F%E8%83%BD"><span class="toc-number">1.</span> <span class="toc-text">快捷功能</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%AE%9E%E7%94%A8%E5%8A%9F%E8%83%BD"><span class="toc-number">1.1.</span> <span class="toc-text">实用功能</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E8%AE%BE%E7%BD%AE%E5%BC%80%E6%9C%BA%E8%87%AA%E5%90%AF-SVN%EF%BC%88%E9%9C%80%E8%A6%81%E5%9C%A8%E6%9C%89%E7%AE%A1%E7%90%86%E5%91%98%E6%9D%83%E9%99%90%E7%9A%84%E5%91%BD%E4%BB%A4%E8%A1%8C%E6%89%A7%E8%A1%8C%EF%BC%89-sc-create-SVNServer-binPath-D-xxxx-svnserve-exe-service-r-D-xxx-%E9%A1%B6%E5%B1%82%E4%BB%93%E5%BA%93-start-auto-depend-Tcpip-SVNServer%EF%BC%9A%E6%9C%8D%E5%8A%A1%E5%90%8D%E7%A7%B0-%E2%80%93service-%EF%BC%9Awindow-%E6%A8%A1%E5%BC%8F-start%EF%BC%9Aauto-%E8%87%AA%E5%8A%A8-net-start-SVNServer-%E6%89%8B%E5%8A%A8%E5%90%AF%E5%8A%A8-net-stop-SVNServer-%E6%89%8B%E5%8A%A8%E5%81%9C%E6%AD%A2-sc-delete-SVNServer-%E5%81%9C%E6%AD%A2%E5%90%8E%E5%88%A0%E9%99%A4%E6%9C%8D%E5%8A%A1-%E6%88%90%E5%8A%9F%E6%A1%88%E4%BE%8B%EF%BC%9Asc-create-MySVNServer2-binpath-C-Program-Files-TortoiseSVN-bin-svnserve-exe-service-r-E-lzo-project-svn-root-depend-Tcpip-start-auto"><span class="toc-number">2.</span> <span class="toc-text">设置开机自启 SVN（需要在有管理员权限的命令行执行）-   sc create SVNServer binPath&#x3D; &quot;D:&#x2F;xxxx&#x2F;svnserve.exe --service -r D:&#x2F;xxx&#x2F;顶层仓库&quot; start&#x3D; auto depend&#x3D; Tcpip    -   SVNServer：服务名称    -   –service ：window 模式    -   start：auto 自动-   net start SVNServer:手动启动-   net stop SVNServer:手动停止-   sc delete SVNServer:停止后删除服务-   成功案例：sc create MySVNServer2 binpath&#x3D; &quot;\&quot;C:\Program Files\TortoiseSVN\bin\svnserve.exe\&quot; --service -r E:&#x2F;lzo-project&#x2F;svn-root&quot; depend&#x3D; Tcpip start&#x3D; auto</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%9C%8D%E5%8A%A1"><span class="toc-number">3.</span> <span class="toc-text">服务</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%8C%85%E7%AE%A1%E7%90%86%E5%B7%A5%E5%85%B7"><span class="toc-number">3.1.</span> <span class="toc-text">包管理工具</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E7%BE%8E%E5%8C%96"><span class="toc-number">3.2.</span> <span class="toc-text">美化</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%BF%AB%E6%8D%B7%E9%94%AE"><span class="toc-number">3.3.</span> <span class="toc-text">快捷键</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#window-cmd"><span class="toc-number">4.</span> <span class="toc-text">window cmd</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#win-%E5%91%BD%E4%BB%A4"><span class="toc-number">4.1.</span> <span class="toc-text">win 命令</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%8A%9F%E8%83%BD"><span class="toc-number">4.2.</span> <span class="toc-text">功能</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%97%A0%E6%B3%95%E6%89%BE%E6%90%9C%E7%B4%A2%E5%88%B0%E5%88%AB%E4%BA%BA%E5%85%B1%E4%BA%AB%E7%9A%84%E5%A4%84%E7%90%86%E6%96%B9%E6%B3%95-1%E3%80%81%E5%8F%8C%E6%96%B9%E6%8E%A7%E5%88%B6%E9%9D%A2%E6%9D%BF-%E7%BD%91%E7%BB%9C%E5%92%8C-Internet-%E7%BD%91%E7%BB%9C%E5%92%8C%E5%85%B1%E4%BA%AB%E4%B8%AD%E5%BF%83-%E9%AB%98%E7%BA%A7%E5%85%B1%E4%BA%AB%E8%AE%BE%E7%BD%AE-%E6%89%93%E5%BC%80%E5%85%AC%E5%85%B1%E6%96%87%E4%BB%B6%E5%85%B1%E4%BA%AB-2%E3%80%81%E5%85%B3%E9%97%AD%E5%AF%B9%E6%96%B9%E9%98%B2%E7%81%AB%E5%A2%99-%E6%88%96%E5%B0%86%E5%AF%B9%E6%96%B9%E9%98%B2%E7%81%AB%E5%A2%99%E7%BD%91%E8%B7%AF%E5%8F%91%E7%8E%B0%E7%9A%84%E5%85%AC%E7%94%A8%E7%A7%81%E7%94%A8%E6%89%93%E9%92%A9%E5%85%81%E8%AE%B8-3%E3%80%81%E5%85%B3%E9%97%AD%E5%AF%B9%E6%96%B9%E6%8E%A7%E5%88%B6%E9%9D%A2%E6%9D%BF-%E7%A8%8B%E5%BA%8F-%E7%A8%8B%E5%BA%8F%E5%92%8C%E5%8A%9F%E8%83%BD-%E5%90%AF%E7%94%A8%E5%85%B3%E9%97%AD-widows-%E5%8A%9F%E8%83%BD-%E5%8B%BE%E6%8E%89-SMB-1-0-CFLS-%E6%96%87%E4%BB%B6%E5%85%B1%E4%BA%AB%E6%94%AF%E6%8C%81"><span class="toc-number">5.</span> <span class="toc-text">无法找搜索到别人共享的处理方法-   1、双方控制面板\网络和 Internet\网络和共享中心\高级共享设置 打开公共文件共享-   2、关闭对方防火墙(或将对方防火墙网路发现的公用私用打钩允许)-   3、关闭对方控制面板\程序\程序和功能-&gt;启用关闭 widows 功能 勾掉 SMB 1.0&#x2F;CFLS 文件共享支持</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%9B%9E%E6%94%B6%E7%AB%99"><span class="toc-number">5.1.</span> <span class="toc-text">回收站</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#bat-%E6%89%B9%E5%A4%84%E7%90%86"><span class="toc-number">5.2.</span> <span class="toc-text">bat 批处理</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%B3%BB%E7%BB%9F%E4%BC%98%E5%8C%96"><span class="toc-number">6.</span> <span class="toc-text">系统优化</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#PowerShell-%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4"><span class="toc-number">6.1.</span> <span class="toc-text">PowerShell 常用命令</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#window-%E5%BF%AB%E6%8D%B7%E9%94%AE"><span class="toc-number">6.2.</span> <span class="toc-text">window 快捷键</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#Win"><span class="toc-number">6.2.1.</span> <span class="toc-text">Win</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#Ctrl"><span class="toc-number">6.2.2.</span> <span class="toc-text">Ctrl</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#Alt"><span class="toc-number">6.2.3.</span> <span class="toc-text">Alt</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#Shift"><span class="toc-number">6.2.4.</span> <span class="toc-text">Shift</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#win%E5%B8%B8%E7%94%A8%E8%BD%AF%E4%BB%B6"><span class="toc-number">6.3.</span> <span class="toc-text">win常用软件</span></a></li></ol></li></ol></div></div><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2023/07/22/window/win-11/" title="win 11 set">win 11 set</a><time datetime="2023-07-22T07:14:09.700Z" title="发表于 2023-07-22 15:14:09">2023-07-22</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2023/07/22/window/win-gitbash/" title="git bash">git bash</a><time datetime="2023-07-22T07:14:09.700Z" title="发表于 2023-07-22 15:14:09">2023-07-22</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2023/07/22/window/win-wsl/" title="wsl">wsl</a><time datetime="2023-07-22T07:14:09.700Z" title="发表于 2023-07-22 15:14:09">2023-07-22</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2023/07/22/window/win-main/" title="window">window</a><time datetime="2023-07-22T07:14:09.700Z" title="发表于 2023-07-22 15:14:09">2023-07-22</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2023/07/22/web/%E5%85%BC%E5%AE%B9%E9%97%AE%E9%A2%98/" title="兼容问题">兼容问题</a><time datetime="2023-07-22T07:14:09.699Z" title="发表于 2023-07-22 15:14:09">2023-07-22</time></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2020 - 2023 By lzoxun</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open"></i></button><button id="translateLink" type="button" title="简繁转换">繁</button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button class="close" id="mobile-toc-button" type="button" title="目录"><i class="fas fa-list-ul"></i></button><button id="go-up" type="button" title="回到顶部"><span class="scroll-percent"></span><i class="fas fa-arrow-up"></i></button></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="/js/tw_cn.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox/fancybox.umd.min.js"></script><script src="https://cdn.jsdelivr.net/npm/instant.page/instantpage.min.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/vanilla-lazyload/dist/lazyload.iife.min.js"></script><script src="https://cdn.jsdelivr.net/npm/node-snackbar/dist/snackbar.min.js"></script><script>function panguFn () {
  if (typeof pangu === 'object') pangu.autoSpacingPage()
  else {
    getScript('https://cdn.jsdelivr.net/npm/pangu/dist/browser/pangu.min.js')
      .then(() => {
        pangu.autoSpacingPage()
      })
  }
}

function panguInit () {
  if (false){
    GLOBAL_CONFIG_SITE.isPost && panguFn()
  } else {
    panguFn()
  }
}

document.addEventListener('DOMContentLoaded', panguInit)</script><div class="js-pjax"></div><script id="canvas_nest" defer="defer" color="0,0,255" opacity="0.7" zIndex="-1" count="99" mobile="false" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc/dist/canvas-nest.min.js"></script><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script><div id="local-search"><div class="search-dialog"><nav class="search-nav"><span class="search-dialog-title">搜索</span><span id="loading-status"></span><button class="search-close-button"><i class="fas fa-times"></i></button></nav><div class="is-center" id="loading-database"><i class="fas fa-spinner fa-pulse"></i><span>  数据库加载中</span></div><div class="search-wrap"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章" type="text"/></div></div><hr/><div class="no-result" id="local-search-results"></div><div id="local-search-stats-wrap"></div></div></div><div id="search-mask"></div><script src="/js/search/local-search.js"></script></div></div><script src="/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"pluginRootPath":"live2dw/","pluginJsPath":"lib/","pluginModelPath":"assets/","tagMode":false,"log":false,"model":{"jsonPath":"/live2dw/assets/haruto.model.json"},"display":{"position":"right","width":100,"height":200,"right":300},"mobile":{"show":true}});</script></body></html>